package com.gold.config.environment;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

public class PropertySource {

    private String name;
    private Map<?, ?> source;

    @JsonCreator
    public PropertySource(@JsonProperty("name") String name, @JsonProperty("source") Map<?, ?> source)
    {
        this.name = name;
        this.source = source;
    }

    public String getName()
    {
        return this.name;
    }

    public Map<?, ?> getSource()
    {
        return this.source;
    }

    public String toString()
    {
        return "PropertySource [name=" + this.name + "]";
    }

}
